﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RaygunDiplomacy.Entities
{
   public partial class Descriptor : HashSet<Descriptor>
   {
      public string Name { get; private set; }

      private Descriptor(string name)
      {
         Name = name;
      }

      public override int GetHashCode()
      {
         return Name.GetHashCode();
      }

      public override bool Equals(object obj)
      {
         if (obj is Descriptor)
         {
            return (obj as Descriptor).Name.Equals(this.Name);
         }

         return false;
      }

      public override string ToString()
      {
         return Name;
      }
   }
}
